<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>匿名投诉</title>
    <link rel="stylesheet" href="media/layui/css/layui.css">
</head>
<body>
<form>
    <table>
        <tr>
            <td><label class="col-sm-2 control-label no-padding-right" style="color:red"> 投诉内容： </label></td>
        </tr>
        <tr>
            <td></td>
            <td><textarea placeholder="本投诉是匿名投诉，不会暴露您的信息" style="width:592px;height:150px;" id="content" name="content"></textarea></td>
        </tr>
    </table>

    <button type="submit" class="layui-btn">提交</button>
</form>

<script src="media/layui/layui.js"></script>
<script src="media/js/jquery.min.js"></script>
<script>

    $("form").submit(function () {
        $.ajax({
            type:"get",
            url:"http://localhost:8080/OaNew/anonymity/add.do",
            data:$("form").serialize(),
            success:function (data) {
                alert(data.info)
                window.location.reload()
            }
        })
        return false
    })

</script>
</body>
</html>
